Optimal. Leaf size=144 \[ \frac {(c+d x)^{1+m}}{2 d (1+m)}+\frac {2^{-3-m} e^{2 a-\frac {2 b c}{d}} (c+d x)^m \left (-\frac {b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {2 b (c+d x)}{d}\right )}{b}-\frac {2^{-3-m} e^{-2 a+\frac {2 b c}{d}} (c+d x)^m \left (\frac {b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {2 b (c+d x)}{d}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {3393, 3388,
2212} \begin {gather*} \frac {2^{-m-3} e^{2 a-\frac {2 b c}{d}} (c+d x)^m \left (-\frac {b (c+d x)}{d}\right )^{-m} \text {Gamma}\left (m+1,-\frac {2 b (c+d x)}{d}\right )}{b}-\frac {2^{-m-3} e^{\frac {2 b c}{d}-2 a} (c+d x)^m \left (\frac {b (c+d x)}{d}\right )^{-m} \text {Gamma}\left (m+1,\frac {2 b (c+d x)}{d}\right )}{b}+\frac {(c+d x)^{m+1}}{2 d (m+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2212
Rule 3388
Rule 3393
Rubi steps
\begin {align*} \int (c+d x)^m \cosh ^2(a+b x) \, dx &=\int \left (\frac {1}{2} (c+d x)^m+\frac {1}{2} (c+d x)^m \cosh (2 a+2 b x)\right ) \, dx\\ &=\frac {(c+d x)^{1+m}}{2 d (1+m)}+\frac {1}{2} \int (c+d x)^m \cosh (2 a+2 b x) \, dx\\ &=\frac {(c+d x)^{1+m}}{2 d (1+m)}+\frac {1}{4} \int e^{-i (2 i a+2 i b x)} (c+d x)^m \, dx+\frac {1}{4} \int e^{i (2 i a+2 i b x)} (c+d x)^m \, dx\\ &=\frac {(c+d x)^{1+m}}{2 d (1+m)}+\frac {2^{-3-m} e^{2 a-\frac {2 b c}{d}} (c+d x)^m \left (-\frac {b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {2 b (c+d x)}{d}\right )}{b}-\frac {2^{-3-m} e^{-2 a+\frac {2 b c}{d}} (c+d x)^m \left (\frac {b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {2 b (c+d x)}{d}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 132, normalized size = 0.92 \begin {gather*} \frac {1}{8} (c+d x)^m \left (\frac {4 c+4 d x}{d+d m}+\frac {2^{-m} e^{2 a-\frac {2 b c}{d}} \left (-\frac {b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {2 b (c+d x)}{d}\right )}{b}-\frac {2^{-m} e^{-2 a+\frac {2 b c}{d}} \left (\frac {b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {2 b (c+d x)}{d}\right )}{b}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \left (d x +c \right )^{m} \left (\cosh ^{2}\left (b x +a \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.06, size = 102, normalized size = 0.71 \begin {gather*} -\frac {{\left (d x + c\right )}^{m + 1} e^{\left (-2 \, a + \frac {2 \, b c}{d}\right )} E_{-m}\left (\frac {2 \, {\left (d x + c\right )} b}{d}\right )}{4 \, d} - \frac {{\left (d x + c\right )}^{m + 1} e^{\left (2 \, a - \frac {2 \, b c}{d}\right )} E_{-m}\left (-\frac {2 \, {\left (d x + c\right )} b}{d}\right )}{4 \, d} + \frac {{\left (d x + c\right )}^{m + 1}}{2 \, d {\left (m + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.11, size = 241, normalized size = 1.67 \begin {gather*} -\frac {{\left (d m + d\right )} \cosh \left (\frac {d m \log \left (\frac {2 \, b}{d}\right ) - 2 \, b c + 2 \, a d}{d}\right ) \Gamma \left (m + 1, \frac {2 \, {\left (b d x + b c\right )}}{d}\right ) - {\left (d m + d\right )} \cosh \left (\frac {d m \log \left (-\frac {2 \, b}{d}\right ) + 2 \, b c - 2 \, a d}{d}\right ) \Gamma \left (m + 1, -\frac {2 \, {\left (b d x + b c\right )}}{d}\right ) - {\left (d m + d\right )} \Gamma \left (m + 1, \frac {2 \, {\left (b d x + b c\right )}}{d}\right ) \sinh \left (\frac {d m \log \left (\frac {2 \, b}{d}\right ) - 2 \, b c + 2 \, a d}{d}\right ) + {\left (d m + d\right )} \Gamma \left (m + 1, -\frac {2 \, {\left (b d x + b c\right )}}{d}\right ) \sinh \left (\frac {d m \log \left (-\frac {2 \, b}{d}\right ) + 2 \, b c - 2 \, a d}{d}\right ) - 4 \, {\left (b d x + b c\right )} \cosh \left (m \log \left (d x + c\right )\right ) - 4 \, {\left (b d x + b c\right )} \sinh \left (m \log \left (d x + c\right )\right )}{8 \, {\left (b d m + b d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (c + d x\right )^{m} \cosh ^{2}{\left (a + b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {cosh}\left (a+b\,x\right )}^2\,{\left (c+d\,x\right )}^m \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________